import { Animation } from "cc"
import { IState } from "../../fsm/State"
import { Actor } from "../Actor"
import { StateDefine } from "../StateDefine"
// 抽象类 角色状态
export abstract class ActorState implements IState<StateDefine> {
    id: StateDefine
    actor: Actor
    animation: Animation
    constructor(id: StateDefine, actor: Actor) {
        this.id = id
        this.actor = actor
        this.animation = this.actor.animation
    }
    onEnter(): void {

    }
    onExit(): void {

    }
    update(deltaTime: number): void {

    }
    onDestroy(): void {

    }
    canTransit(to: StateDefine): boolean {
        return true
    }
}
